package com.zhangst.bbs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.zhangst.bbs.dao.BaseDaoI;
import com.zhangst.bbs.domain.Role;
import com.zhangst.bbs.service.RoleServiceI;

public class RoleServiceImpl implements RoleServiceI{

	private BaseDaoI<Role> roleDao;
	
	
	
	public BaseDaoI<Role> getRoleDao() {
		return roleDao;
	}


	@Autowired
	public void setRoleDao(BaseDaoI<Role> roleDao) {
		this.roleDao = roleDao;
	}



	@Override
	public List<Role> getRoles() {
		String hql="from Role";
		return roleDao.find(hql);
	}

}
